// 一定是需要登陆访问的
const mainPage = [
  {
    path: '/login',
    name: 'login',
    component: () =>
        import(/* webpackChunkName: "Login" */ '../pages/login/Login')
  },
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/student',
    name: 'student',
    component: () => import('../pages/student/main.vue'),
    children: [
      {
        path: 'selfinformation',
        name: 'selfinformation',
        component: () => import('../pages/student/pages/SelfInformation.vue')
      },
      {
        path: 'indisciplinetable',
        name: 'indisciplinetable',
        component: () => import('../pages/student/pages/indisciplineTable.vue')
      },
      {
        path: 'repairtable',
        name: 'repairtable',
        component: () => import('../pages/student/pages/RepairTable.vue')
      }
    ]
  },
  {
    path: '/teacher',
    name: 'teacher',
    component: () => import('../pages/teacher/main.vue')
    // children: []
  },
  {
    path: '/leader',
    name: 'leader',
    component: () => import('../pages/leader/main.vue'),
    children: [
      {
        path: '/selfInformation',
        name: 'selfInformation',
        component: () => import('../pages/leader/pages/selfInformation.vue')
      },
      {
        path: '/batchAllocation',
        name: 'batchAllocation.vue',
        component: () => import('../pages/leader/pages/accommodationManagement/accommodationAdjustments/batchAllocation.vue')
      },
      {
        path: '/batchCheckout',
        name: 'batchCheckout.vue',
        component: () => import('../pages/leader/pages/accommodationManagement/accommodationAdjustments/batchCheckout.vue')
      },
      {
        path: '/batchExchange',
        name: 'batchExchange.vue',
        component: () => import('../pages/leader/pages/accommodationManagement/accommodationAdjustments/batchExchange.vue')
      },
      {
        path: '/auditCheckin',
        name: 'auditCheckin.vue',
        component: () => import('../pages/leader/pages/accommodationManagement/accommodationAudits/auditCheckin.vue')
      },
      {
        path: '/auditCheckout',
        name: 'auditCheckout.vue',
        component: () => import('../pages/leader/pages/accommodationManagement/accommodationAudits/auditCheckout.vue')
      },
      {
        path: '/indisciplineAudit',
        name: 'indisciplineAudit.vue',
        component: () => import('../pages/leader/pages/dormitoryManagement/indisciplineAudit.vue')
      },
      {
        path: '/dormitoryAdjustment',
        name: 'dormitoryAdjustment.vue',
        component: () => import('../pages/leader/pages/statementManagement/dormitoryAdjustment.vue')
      },
      {
        path: '/dormitoryScore',
        name: 'dormitoryScore.vue',
        component: () => import('../pages/leader/pages/statementManagement/dormitoryScore.vue')
      },
      {
        path: '/hygieneSituation',
        name: 'hygieneSituation.vue',
        component: () => import('../pages/leader/pages/statementManagement/hygieneSituation.vue')
      },
      {
        path: '/indisciplineSituation',
        name: 'indisciplineSituation.vue',
        component: () => import('../pages/leader/pages/statementManagement/indisciplineSituation.vue')
      },
      {
        path: '/repairSituation',
        name: 'repairSituation.vue',
        component: () => import('../pages/leader/pages/statementManagement/repairSituation.vue')
      }
    ]
  },
  {
    path: '/dormitory_admin',
    name: 'dormitory_admin',
    component: () => import('../pages/dormitory_admin/main.vue'),
    children: [
      {
        path: 'blankPage',
        name: 'blankPage',
        component: () => import('../pages/dormitory_admin/pages/blankPage.vue')
      },
      {
        path: 'checkInManagement',
        name: 'checkInManagement',
        component: () => import('../pages/dormitory_admin/pages/checkInManagement.vue')
      },
      {
        path: 'checkOutManagement',
        name: 'checkOutManagement',
        component: () => import('../pages/dormitory_admin/pages/checkOutManagement.vue')
      },
      {
        path: 'disciplineManagement',
        name: 'disciplineManagement',
        component: () => import('../pages/dormitory_admin/pages/disciplineManagement.vue')
      },
      {
        path: 'HygieneManagement',
        name: 'HygieneManagement',
        component: () => import('../pages/dormitory_admin/pages/HygieneManagement.vue')
      },
      {
        path: 'repairManagement',
        name: 'repairManagement',
        component: () => import('../pages/dormitory_admin/pages/repairManagement.vue')
      },
      {
        path: 'allocationTable',
        name: 'allocationTable',
        component: () => import('../pages/dormitory_admin/pages/allocationTable.vue')
      },
      {
        path: 'disciplineTable',
        name: 'disciplineTable',
        component: () => import('../pages/dormitory_admin/pages/disciplineTable.vue')
      },
      {
        path: 'HygieneTable',
        name: 'HygieneTable',
        component: () => import('../pages/dormitory_admin/pages/HygieneTable.vue')
      },
      {
        path: 'repairTable',
        name: 'repairTable',
        component: () => import('../pages/dormitory_admin/pages/repairTable.vue')
      },
      {
        path: 'ratingTable',
        name: 'ratingTable',
        component: () => import('../pages/dormitory_admin/pages/ratingTable.vue')
      },
      {
        path: 'information',
        name: 'information',
        component: () => import('../pages/dormitory_admin/pages/information.vue')
      },
      {
        path: 'hygieneActivity',
        name: 'hygieneActivity',
        component: () => import('../pages/dormitory_admin/pages/hygieneActivity.vue')
      }
    ]
  },
  {
    path: '/keeper',
    name: 'keeper',
    component: () => import('../pages/keeper/main.vue'),
    children: [
      {
        path: 'blankPage',
        name: 'blankPage',
        component: () => import('../pages/keeper/pages/blankPage.vue')
      },
      {
        path: 'information',
        name: 'information',
        component: () => import('../pages/keeper/pages/information.vue')
      },
      {
        path: 'repairManagement',
        name: 'repairManagement',
        component: () => import('../pages/keeper/pages/repairManagement.vue')
      },
      {
        path: 'repairTable',
        name: 'repairTable',
        component: () => import('../pages/keeper/pages/repairTable.vue')
      }
    ]
  },
  {
    path: '/super_admin',
    name: 'super_admin',
    component: () => import('../pages/super_admin/main.vue'),
    redirect: '/areamanage',
    children: [
      {
        path: '/areamanage',
        name: 'areamanage',
        component: () => import('../pages/super_admin/pages/areamanage.vue')
      },
      {
        path: '/buildingmanage',
        name: 'buildingmanage',
        component: () => import('../pages/super_admin/pages/BuildingManage.vue')
      },
      {
        path: '/studentdormitorymanage',
        name: 'studentdormitorymanage',
        component: () => import('../pages/super_admin/pages/StudentDormitoryManage.vue')
      },
      {
        path: '/leadermanage',
        name: 'leadermanage',
        component: () => import('../pages/super_admin/pages/LeaderManage.vue')
      },
      {
        path: '/studentmanage',
        name: 'studentmanage',
        component: () => import('../pages/super_admin/pages/StudentManage.vue')
      },
      {
        path: '/dormitoryadminmanage',
        name: 'dormitoryadminmanage',
        component: () => import('../pages/super_admin/pages/DormAdmin.vue')
      },
      // {
      //   path: '/teachermanage',
      //   name: 'teachermanage',
      //   component: () => import('../pages/super_admin/pages/TeacherManage.vue')
      // },
      {
        path: '/keepermanage',
        name: 'keepermanage',
        component: () => import('../pages/super_admin/pages/KeeperManage.vue')
      },
      {
        path: '/roommanage',
        name: 'roommanage',
        component: () => import('../pages/super_admin/pages/RoomManage.vue')
      },
      {
        path: '/allocateone',
        name: 'allocateone',
        component: () => import('../pages/super_admin/pages/AllocatedOne.vue')
      }
    ]
  }]
export default mainPage
